<script>
	import {
		mapState,
		mapActions
	} from 'vuex'
	export default {
		onLaunch: function() {
			//console.log('App Launch')
			// 初始化websocket
			this.$store.dispatch('WEBSOCKET_INIT','ws://api.hadax.com/ws')
		},
		onShow: function() {
			//console.log('App Show')
		},
		onHide: function() {
			//console.log('App Hide')
		}
	}
</script>
<style lang="scss">
	@import "colorui/main.css";
	/*uview全局样式*/
	@import "uview-ui/index.scss";
	/*app全局样式*/
	@import 'static/style/app.scss';

	/** ui demo */
	@import 'styles/ui-demo.scss';
	/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
    @import 'styles/uni.css';

			/* 引入 qs-ui 基础样式 */
	@import 'qs-ui/theme.scss';
</style>